﻿using System;
using System.Runtime.Serialization;
namespace PH.Model.Analyses.Schools
{
    [DataContract]
    public class S4SampleModel:MBase
    {
        [Model]
        [DataMember]
        public System.Guid ArchiveGuid { get; set; }
        [Model]
        [DataMember]
        public DateTime CreatedOn { get; set; }
        [Model]
        [DataMember]
        public string SchoolCode { get; set; }
        [Model]
        [DataMember]
        public System.Guid SchoolGuid { get; set; }
        [Model]
        [DataMember]
        public int SchoolID { get; set; }
        [Model]
        [DataMember]
        public int GradeCode { get; set; }
        [Model]
        [DataMember]
        public int ClassID { get; set; }
        [Model]
        [DataMember]
        public string ClassName { get; set; }
        [Model]
        [DataMember]
        public int CIndex { get; set; }
        [Model]
        [DataMember]
        public int SubjectID { get; set; }
        [Model]
        [DataMember]
        public string SubjectName { get; set; }
        [Model]
        [DataMember]
        public Nullable<int> Male { get; set; }
        [Model]
        [DataMember]
        public Nullable<int> Fmale { get; set; }
        [Model]
        [DataMember]
        public Nullable<int> Due { get; set; }
        [Model]
        [DataMember]
        public int Sample { get; set; }

        #region Help
        [DataMember]
        public Nullable<int> Balance
        {
            get { return Due - Sample; }
        }
        #endregion
    }

    [DataContract]
    public class S4SampleCollection : ModelCollectionBase<S4SampleModel> { }

    public class S4SampleQuery : AnalysisQuery
    {
        public int ClassID { get; set; }
        public bool? Finish { get; set; }
    }
}
